* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100vw;
  min-height: 100vh;
  font-size: 28px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  color: #272829;
  background: #f1f2f6;
}

// @for $i from 1 through 4 {
//   .icon#{$i} {
//     background: url(../images/icon#{$i}.png) no-repeat center;
//     background-size: 100% 100%;
//   }
// }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.blod {
  font-weight: 700;
}
::-webkit-scrollbar {
  width: 10px;
}
// 轨道
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}
// 滑块
::-webkit-scrollbar-thumb {
  background: #034877;
  border-radius: 5px;
}
// 头部
header {
  position: relative;
  height: 80px;
  .wrap {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    height: 80px;
    width: 100%;
    font-size: 36px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #272829;
    @extend .flex-center;
  }
  .bg {
    background: #fff;
  }
  .left {
    position: absolute;
    left: 20px;
    height: 100%;
    @extend .flex-center;
    .layui-icon-left {
      font-size: 36px;
    }
  }
  .right {
    position: absolute;
    right: 20px;
    height: 100%;
    @extend .flex-center;
    font-size: 28px;
    font-family: HarmonyOS Sans SC;
    font-weight: 400;
    color: #272829;
    .icon-recharge {
      width: 28px;
      height: 28px;
      background: url(../images/order-icon-2.png) no-repeat center;
      background-size: 100% 100%;
      margin-right: 10px;
    }
  }
}
.icon-recharge {
  width: 28px;
  height: 28px;
}
// 底部
footer {
  position: relative;
  height: 110px;
  .content {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9;
    background: #fff;
    height: 100px;
    width: 100%;
    font-size: 24px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #272829;
    display: grid;
    grid-template-columns: repeat(5, 20%);
    place-items: center;
    .item {
      display: flex;
      flex-direction: column;
      i {
        width: 44px;
        height: 44px;
      }
      span {
        margin-top: 5px;
      }
    }
    .active span {
      color: #982b23;
    }
    @for $i from 1 through 5 {
      .icon#{$i} {
        background: url(../images/menu-#{$i}.png) no-repeat center;
        background-size: 100% 100%;
      }
      .active .icon#{$i} {
        background: url(../images/menu-#{$i}a.png) no-repeat center;
        background-size: 100% 100%;
      }
    }
  }
}
// 通知公告
.notice-wrap {
  height: 84px;
  background: linear-gradient(180deg, #f4e9e9, #ffffff);
  border-radius: 10px;
  padding: 0 20px;
  .icon {
    width: 97px;
    height: 26px;
    background: url(../images/home-icon-notice.png) no-repeat center top;
    background-size: 100% 100%;
  }
  .line {
    width: 1px;
    height: 28px;
    background: #dae0e6;
    margin: 0 20px;
  }
  span {
    width: 524px;
    white-space: nowrap;
    padding-right: 20px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .layui-icon.layui-icon-right {
    color: #999;
  }
}
// 价格
.price-wrap {
  span {
    font-size: 38px;
    font-family: Roboto;
    font-weight: bold;
    color: #d30e00;
  }
  .unit {
    font-size: 20px;
    margin-top: 10px;
  }
}
// 标题
.title-wrap {
  .title {
    font-size: 36px;
    font-weight: 700;
  }
  a {
    font-size: 26px;
    color: #999;
  }
}
// 卡片
.card-wrap {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 30px;
}
// 立即购买
.buy-btn {
  width: 100%;
  height: 100px;
  background: #c59a6d;
  font-size: 32px;
  font-family: Source Han Sans CN;
  font-weight: 500;
  color: #ffffff;
  i {
    width: 36px;
    height: 36px;
    background: url(../images/btn-icon.png) no-repeat center top;
    background-size: cover;
    margin-right: 10px;
  }
}
// 引导页
.guide-page {
  background: url(../images/guide.png) no-repeat center top;
  background-size: cover;
}
// 首页
.home-page {
  .head {
    height: 660px;
    width: 100%;
    background: url(../images/home-head-bg.png) no-repeat center top;
    background-size: 100% 100%;
    .menu-wrap {
      width: 710px;
      height: 200px;
      background: #ffffff;
      border-radius: 10px;
      margin: 0 auto;
      margin-top: 350px;
      display: grid;
      place-items: center;
      justify-content: center;
      gap: 7px;
      grid-template-columns: repeat(5, 130px);
      .item {
        width: 130px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        i {
          width: 100%;
          height: 130px;
        }
        span {
          font-size: 26px;
          font-family: Source Han Sans CN;
          font-weight: 400;
          color: #272829;
        }
      }
      @for $i from 1 through 5 {
        .icon#{$i} {
          background: url(../images/home-icon-#{$i}.png) no-repeat center;
          background-size: 100% 100%;
        }
      }
    }
  }
  .page-wrap {
    padding: 0 20px 20px 20px;
    .course-item {
      margin-top: 20px;
      background: #ffffff;
      border-radius: 10px;
      padding: 20px;
      img {
        width: 260px;
        height: 200px;
        border-radius: 10px;
      }
      .right {
        width: 100%;
        align-self: stretch;
        margin-left: 30px;
        .title {
          font-size: 36px;
          font-weight: 700;
        }
        .bottom {
          width: 100%;
          span {
            font-size: 38px;
            font-family: Roboto;
            font-weight: bold;
            color: #d30e00;
          }
          .unit {
            font-size: 20px;
            margin-top: 10px;
          }
          a {
            width: 160px;
            height: 60px;
            background: #c59a6d;
            border-radius: 30px;
            font-size: 28px;
            font-family: Source Han Sans CN;
            font-weight: 400;
            color: #ffffff;
            @extend .flex-center;
          }
        }
      }
    }
  }
}
// 学习页
.study-page {
  .head {
    height: 500px;
    width: 100%;
    background: url(../images/study-head-bg.png) no-repeat center top;
    background-size: 100% 100%;
  }
  .page-wrap {
    padding: 20px;
    margin-top: -440px;
    .course-item {
      margin-top: 20px;
      background: #ffffff;
      border-radius: 10px;
      position: relative;
      .img {
        width: 100%;
        height: 400px;
      }
      .mark {
        position: absolute;
        top: 20px;
        right: -6px;
        width: 84px;
        height: 50px;
      }
      .content {
        padding: 30px;
      }
      .title {
        font-size: 34px;
        font-weight: 700;
      }
      .bottom {
        width: 100%;
        span {
          font-size: 38px;
          font-family: Roboto;
          font-weight: bold;
          color: #d30e00;
        }
        .unit {
          font-size: 20px;
          margin-top: 10px;
        }
        a {
          width: 160px;
          height: 60px;
          background: #c59a6d;
          border-radius: 30px;
          font-size: 28px;
          font-family: Source Han Sans CN;
          font-weight: 400;
          color: #ffffff;
          @extend .flex-center;
        }
      }
    }
  }
}
// 详情页面
.detail-page {
  .head {
    height: 680px;
    width: 100%;
    background: url(../images/study-img-1.png) no-repeat center top;
    background-size: cover;
  }
  .page-wrap {
    padding: 20px;
    margin-top: -120px;
    .item {
      position: relative;
      margin-top: 30px;
      .dot {
        width: 24px;
        height: 24px;
        background: url(../images/study-dot.png) no-repeat center top;
        background-size: cover;
      }
      .icon {
        width: 24px;
        height: 24px;
        background: url(../images/study-icon-6.png) no-repeat center top;
        background-size: cover;
        margin-left: 16px;
        margin-right: 20px;
      }
      span {
        font-size: 26px;
      }
      .line {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 2px;
        height: 80px;
        background: #c59a6d;
        opacity: 0.2;
      }
    }
    .item:last-of-type {
      .line {
        display: none;
      }
    }
  }
  footer {
    .content {
      display: block;
    }
  }
}
// 支付页面
.pay-page {
  .page-wrap {
    padding: 20px;
  }
  .course-item {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    img {
      width: 260px;
      height: 200px;
      border-radius: 10px;
    }
    .right {
      width: 100%;
      align-self: stretch;
      margin-left: 30px;
      .title {
        font-size: 36px;
        font-weight: 700;
      }
      .bottom {
        width: 100%;
        .cancle {
          width: 160px;
          height: 60px;
          border: 1px solid #919599;
          border-radius: 5px;
          font-size: 26px;
          font-family: Source Han Sans CN;
          font-weight: 400;
          color: #616366;
          @extend .flex-center;
        }
      }
    }
  }
  .order-wrap {
    .item {
      margin-top: 40px;
    }
    .value {
      text-align: right;
      padding-left: 20px;
      font-size: 28px;
      font-family: Roboto;
      font-weight: 400;
      color: #272829;
    }
    .label {
      font-size: 28px;
      font-family: Source Han Sans CN;
      font-weight: 400;
      color: #919599;
    }
  }
  .money-wrap {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e1e2e6;
  }
  .pay-wrap {
    .icon {
      height: 51px;
      width: 51px;
      background: url(../images/order-icon-1.png) no-repeat center top;
      background-size: cover;
    }
    .dot {
      width: 28px;
      height: 28px;
      background: #ffffff;
      border: 2px solid #c8c9cc;
      border-radius: 50%;
      position: relative;
    }
    .dot.active:after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 16px;
      height: 16px;
      background: #c59a6d;
      border-radius: 50%;
    }
  }
  .buy-btn {
    height: 90px;
    border-radius: 10px;
  }
}
// 新闻列表
.notice-list-page {
  header .wrap {
    background: #fff;
  }
  .page-wrap {
    padding: 20px;
    .dot {
      width: 16px;
      height: 16px;
      background-color: #c59a6d;
      border-radius: 50%;
    }
    .red {
      color: #d30e00;
    }
    .card-wrap {
      display: block;
    }
  }
}
// 新闻内容页
.notice-detail-page {
  header .wrap {
    background: #fff;
  }
  .page-wrap {
    padding: 20px;
    background: #fff;
  }
  .desc-wrap {
    font-size: 26px;
    font-family: Roboto;
    font-weight: 400;
    color: #c59a6d;
    padding: 40px 0;
    border-bottom: 1px solid #dae0e6;
  }
  i {
    width: 28px;
    height: 28px;
    margin-right: 10px;
  }
  @for $i from 1 through 3 {
    .icon#{$i} {
      background: url(../images/notice-icon-#{$i}.png) no-repeat center;
      background-size: 100% 100%;
    }
  }
  .detail-wrap {
    p {
      line-height: 1.6;
      margin-bottom: 10px;
    }
  }
  .dot {
    width: 16px;
    height: 16px;
    background-color: #c59a6d;
    border-radius: 50%;
  }
  .red {
    color: #d30e00;
  }
  .card-wrap {
    display: block;
  }
}
// 登录
.login-page {
  .head {
    height: 708px;
    width: 100%;
    background: url(../images/login-head-bg.png) no-repeat center top;
    background-size: 100% 100%;
  }
  .page-wrap {
    padding: 50px;
    margin-top: -500px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    height: calc(100vh - 208px);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    .top {
      width: 100%;
      font-size: 60px;
      font-family: Source Han Sans CN;
      font-weight: bold;
      color: #272829;
      .title {
        position: relative;
        z-index: 1;
      }
      .line:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        width: 264px;
        height: 14px;
        background: #c59a6d;
        z-index: -1;
      }
    }
    .buy-btn {
      height: 90px;
      border-radius: 10px;
    }
    .register {
      font-size: 32px;
      font-family: Source Han Sans CN;
      font-weight: 400;
      color: #c59a6d;
    }
    .w100 {
      width: 100%;
      font-size: 28px;
    }
    .icon {
      width: 32px;
      height: 32px;
      margin-right: 8px;
    }
    .icon-eye {
      display: block;
      position: absolute;
      right: 0;
      top: 40px;
      width: 30px;
      height: 30px;
      background: url(../images/login-icon-2.png) no-repeat center top;
      background-size: 100% 100%;
    }
    .icon-view {
      background: url(../images/login-icon-1.png) no-repeat center top;
      background-size: 100% 100%;
    }
    @for $i from 1 through 2 {
      .icon#{$i} {
        background: url(../images/login-icon-i#{$i}.png) no-repeat center top;
        background-size: 100% 100%;
      }
    }
  }
}
.input-wrap {
  width: 100%;
  .label-wrap {
    width: 100%;
    margin-top: 60px;
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #272829;
  }
  .input {
    font-size: 32px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    border: 0;
    border-bottom: 1px solid #dae0e6;
    padding: 30px 0;
    width: 100%;
  }
  ::placeholder {
    color: #c2c7cc;
  }
}
.checkbox {
  width: 24px;
  height: 24px;
  // color: #c59a6d;
  // background-color: #c59a6d;
  // border-color: #c59a6d;
}
// input[type="checkbox"]:checked {
//   background-color: #c59a6d !;
// }
// 注册
.register-page {
  background-color: #fff;
  .page-wrap {
    padding: 50px;
    .buy-btn {
      height: 90px;
      border-radius: 10px;
    }
    .code {
      position: absolute;
      right: 0;
      bottom: 16px;
      width: 158px;
      height: 58px;
      background: url(../images/code.png) no-repeat center;
      background-size: 100% 100%;
    }
  }
}
// 充值
.recharge-page {
  .page-wrap {
    padding: 20px;
    padding-top: 50px;
    .buy-btn {
      height: 90px;
      border-radius: 10px;
    }
    .price-wrap {
      span {
        font-weight: 400;
        font-size: 28px;
        padding-left: 10px;
      }
    }
    .input {
      font-size: 36px;
      font-family: Source Han Sans CN;
      font-weight: 400;
      border: 0;
      width: 100%;
      margin-left: 20px;
    }
    ::placeholder {
      color: #c2c7cc;
    }
    .pay-wrap {
      .icon {
        height: 51px;
        width: 51px;
        background: url(../images/order-icon-1.png) no-repeat center top;
        background-size: cover;
      }
      .dot {
        width: 28px;
        height: 28px;
        background: #ffffff;
        border: 2px solid #c8c9cc;
        border-radius: 50%;
        position: relative;
      }
      .dot.active:after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 16px;
        height: 16px;
        background: #c59a6d;
        border-radius: 50%;
      }
    }
  }
}
// 个人资料
.profile-page {
  .page-wrap {
    padding: 20px;
  }
  .avatar-wrap {
    position: relative;
    margin: 40px auto;
    width: 172px;
    height: 172px;
    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
    .camera-wrap {
      position: absolute;
      z-index: 2;
      bottom: 0;
      right: 0;
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background-color: #fff;
      @extend .flex-center;
      .icon-camera {
        display: block;
        width: 30px;
        height: 30px;
        background: url(../images/icon-camera.png) no-repeat center;
        background-size: 100% 100%;
      }
    }
  }
  .input-wrap {
    display: flex;
    align-items: center;
    padding-bottom: 40px;
    padding-top: 40px;
    border-bottom: 1px solid #edeef2;
    label {
      font-size: 30px;
      width: 180px;
    }
    input {
      font-size: 30px;
      border: 0;
    }
  }
  .input-wrap:last-of-type {
    border: 0;
    padding-bottom: 10px;
  }
  .input-wrap:first-of-type {
    padding-top: 10px;
  }
  .edit-wrap {
    font-size: 30px;
    color: #c59a6d;
    .layui-icon {
      padding-top: 3px;
      font-size: 30px;
      color: #c59a6d;
    }
  }
  .yellow {
    color: #c59a6d;
  }
  .icon-warn {
    display: block;
    width: 26px;
    height: 26px;
    background: url(../images/icon-warn.png) no-repeat center;
    background-size: 100% 100%;
  }
  .phone-wrap {
    align-items: flex-start;
    padding-bottom: 20px;
  }
}
